//
//  Macro_Services.h
//  MexicoLoan
//
//  Created by wxp on 2025/2/26.
//

#ifndef Macro_Services_h
#define Macro_Services_h


#define RESPONSE_DATA      KEY_data       // 网络请求datas    // data - desvaretasen
#define RESPONSE_MESSAGE   KEY_message    // 网络请求message  // message - suicidaran
#define RESPONSE_CODE      KEY_code       // 网络请求提示码    // code - empastelar
#define RESPONSE_CODE_200  @(200)         // 请求成功
#define RESPONSE_CODE_LOGINFAILURE @(-1)  // 登陆失效
#define TIME_REQUEST_OUT 8                // 超时时间


// 接口地址
#if DEBUG
// 测试
#define DOMAIN_NAME   @"http://139.196.186.189"
#define ROUTE_PREFIX  @"/zida"
#define URL_HEAD      [NSString stringWithFormat:@"%@/app-loanmarket-api%@", DOMAIN_NAME, ROUTE_PREFIX]
#define ImageNationURL [NSString stringWithFormat:@"%@/%@/%@/", DOMAIN_NAME, KEY_images, KEY_product]

#else
// 生产
#define DOMAIN_NAME   @"http://139.196.186.189"
#define ROUTE_PREFIX  @"/zida"
#define URL_HEAD      [NSString stringWithFormat:@"%@/app-loanmarket-api%@", DOMAIN_NAME, ROUTE_PREFIX]
#define ImageNationURL [NSString stringWithFormat:@"%@/%@/%@/", DOMAIN_NAME, KEY_images, KEY_product]

#endif


#endif /* Macro_Services_h */
